package com.zf.shuashua.bean;

import java.io.Serializable;
import java.util.List;

public class BaseListData<T>  implements Serializable {
    private List<T> data;
    private Meta meta;
    private boolean status;

    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public List<T> getData() {
        return data;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

    public Meta getMeta() {
        return meta;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean getStatus() {
        return status;
    }

    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public class Meta implements Serializable {

        private boolean video_auto_play_status;

        private Pagination pagination;

        public void setPagination(Pagination pagination) {
            this.pagination = pagination;
        }

        public Pagination getPagination() {
            return pagination;
        }

        public boolean isVideo_auto_play_status() {
            return video_auto_play_status;
        }

        public void setVideo_auto_play_status(boolean video_auto_play_status) {
            this.video_auto_play_status = video_auto_play_status;
        }
    }

    public class Pagination implements Serializable {

        private int total;
        private int count;
        private int per_page;
        private int current_page;
        private int total_pages;
        private Links links;

        public void setTotal(int total) {
            this.total = total;
        }

        public int getTotal() {
            return total;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getCount() {
            return count;
        }

        public void setPer_page(int per_page) {
            this.per_page = per_page;
        }

        public int getPer_page() {
            return per_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setLinks(Links links) {
            this.links = links;
        }

        public Links getLinks() {
            return links;
        }

    }

    public class Links implements Serializable {

        private String first;
        private String last;
        private String prev;
        private String next;

        public void setFirst(String first) {
            this.first = first;
        }

        public String getFirst() {
            return first;
        }

        public void setLast(String last) {
            this.last = last;
        }

        public String getLast() {
            return last;
        }

        public void setPrev(String prev) {
            this.prev = prev;
        }

        public String getPrev() {
            return prev;
        }

        public void setNext(String next) {
            this.next = next;
        }

        public String getNext() {
            return next;
        }

    }

}